home *** CD-ROM | disk | FTP | other *** search
- { _______________________________________________________________________
- / \
- | I know this is kinda unorthodox, putting yer variables in a Unit, but |
- | the other units use this, so why not? |
- \ _______________________________________________________________________ /
- }
- Unit VarUnit;
-
- Interface
-
- Type Scr = Array[0..63999] of Byte; { 320x200 }
- Type EMapType = Array[0..65534] of Byte; { 255x255 }
- type vect3 = record
- x,y,z : longint;
- end;
- vect4 = record
- x,y,z : real;
- xt,yt : byte;
- cnt : integer;
- end;
- vect5 = record
- x,y,z : Longint;
- xt,yt : longint;
- cnt : integer;
- end;
- vert3 = record
- vn : array[0..2] of vect4;
- end;
- vert4 = record
- vn : array[0..2] of vect5;
- end;
-
- {$I DONUT.PAS}
-
- Type Nrm = array[0..faces] of vert4;
-
- Var Buffer : ^scr;
- Piccy : ^scr;
- Emap : ^EMapType;
-
- Var Costab : Array[0..360] of Longint;
- Sintab : Array[0..360] of Longint;
-
- Var X,Y,Z : Array[0..vert] of longint;
- PolyZ : Array[0..faces] of integer;
- SortedZ : Array[0..faces] of integer;
- FShow : Array[0..faces] of boolean;
- normals : array[0..faces] of vect4;
- vnormals : Nrm;
- vns : Nrm;
- Cnt,
- Xcnt,
- Ycnt,
- Zcnt : longInt;
- Xpos,
- Ypos,
- Zpos : longInt;
- I,J : longInt;
- PPos : integer;
-
- Implementation
-
- Begin
- End.